﻿using SmartPatientCentre.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartPatientCentre.Repositories
{
    public class ResultRepository
    {
        public List<Result> ResultList { get; private set; }

        public ResultRepository()
        {
            ResultList = new List<Result>();

            Result Na1 = new Result() { Sodium = 130,
                                        Potassium = 4,
                                        Urea = 7.8M,
                                        Creatinine = 41,
                                        DateTime = new DateTime(2014, 2, 1) };
            Result Na2 = new Result() { Sodium = 135,
                                        Potassium = 2.9M,
                                        Urea = 8.2M,
                                        Creatinine = 63,
                                        DateTime = new DateTime(2014, 2, 2) };
            Result Na3 = new Result() { Sodium = 140,
                                        Potassium = 5,
                                        Urea = 5.2M,
                                        Creatinine = 77,
                                        DateTime = new DateTime(2014, 2, 3) };
            Result Na4 = new Result() { Sodium = 145,
                                        Potassium = 4.5M,
                                        Urea = 4.7M,
                                        Creatinine = 82,
                                        DateTime = new DateTime(2014, 2, 4) };
            Result Na5 = new Result() { Sodium = 150,
                                        Potassium = 3.2M,
                                        Urea = 3.3M,
                                        Creatinine = 99,
                                        DateTime = new DateTime(2014, 2, 5) };
            Result Na6 = new Result() { Sodium = 155,
                                        Potassium = 5.3M,
                                        Urea = 1.7M,
                                        Creatinine = 121,
                                        DateTime = new DateTime(2014, 2, 6) };

            ResultList.Add(Na1);
            ResultList.Add(Na2);
            ResultList.Add(Na3);
            ResultList.Add(Na4);
            ResultList.Add(Na5);
            ResultList.Add(Na6);
        }
    }
}
